package cn.lugege.basic.util;

import lombok.Data;

@Data
public class AjaxResult {
    private Boolean success=true;
    private String msg="操作成功";

    public static AjaxResult create(){
        return new AjaxResult();
    }

    public AjaxResult setSuccess(boolean success) {
        this.success = success;
        return this;
    }
    public AjaxResult setMessage(String msg) {
        this.msg = msg;
        return this;
    }
}
